<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<s:url value="/images" var="imgPath"/>
<!-- 月历 -->
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick-zh-CN.js"></script>
<link rel="stylesheet" type="text/css" href="/css/smoothness.datepick.css" />
<script language="javascript">
	$().ready( function() {
		$('#startDate').datepick({minDate: null, showOn: 'both', 
	    	buttonImageOnly: true, buttonImage: '${imgPath}/calendar.gif',numberOfMonths:2,dateFormat:"yy-mm-dd",yearRange: '-50:+50'});
		
	});	

</script>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
<br />
<br />
<br />
<s:if test="smsList.size > 0">
	
	<table width="100%">
		<thead class="tb-1" >
			<tr>
				<th>发送日期</th>
				<th>订单编号</th>
				<th>短信内容</th>
				<th>发送人</th>				
			</tr>
		</thead>
		<tbody class="tb-1" >
			<c:forEach items="${smsList}" var="sms" varStatus="rows_index">
				<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}">
					
					<td><fmt:formatDate value="${sms.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td>${sms.orderId}</td>
					<td>${sms.content}</td>
					<td>${sms.createUser}</td>					
									
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
</s:if>
